//
//  CDVShowABSLView.m
//  Staff
//
//  Created by caiyao on 11/28/14.
//
//

#import "CDVShowABSLView.h"
#import "AugmentedGeoViewController.h"
#import "AppDelegate.h"
#import "VideoPlaybackViewController.h"
#import "AppDelegate.h"
#import "HookWebViewController.h"
#import "MainViewController.h"

@implementation CDVShowABSLView

- (void)showABSLView:(CDVInvokedUrlCommand*)command
{
    
//    AugmentedGeoViewController *abslViewController = [[AugmentedGeoViewController alloc] init];
//    [[(AppDelegate *)[[UIApplication sharedApplication] delegate] viewController] presentViewController:abslViewController animated:YES completion:NULL];
//    
//    CDVPluginResult* pluginResult = nil;
//    pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:nil];
//    [self.commandDelegate sendPluginResult:pluginResult
//                                callbackId:command.callbackId];
    
//    Class vcClass = NSClassFromString(@"VideoPlaybackViewController");
//    id vc = [[vcClass alloc]  initWithNibName:nil bundle:nil];
//    
//    SampleAppSlidingMenuController *slidingMenuController = [[SampleAppSlidingMenuController alloc] initWithRootViewController:vc];
//    [slidingMenuController shouldIgnoreDoubleTap];
//    
//    
//    [[(AppDelegate *)[[UIApplication sharedApplication] delegate] viewController] presentViewController:slidingMenuController animated:NO completion:NULL];
//  
//    
//    CDVPluginResult* pluginResult = nil;
//    pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:nil];
//    [self.commandDelegate sendPluginResult:pluginResult
//                                callbackId:command.callbackId];
    
    NSLog(@"%@",command.arguments);
    
    
    HookWebViewController *controller = [[HookWebViewController alloc] init];
    [[(AppDelegate *)[[UIApplication sharedApplication] delegate] viewController].navigationController pushViewController:controller animated:YES];
    
    
}

@end
